//验证流水号是否已存在
function findLSNumer() {
    var diNumer = $(".LSNumer").val();
    $.ajax({
        url:"/myspringboot/DrugInformationController/findLSNumer",
        data:{diNumer:diNumer},
        type:"post",
        dataType:"json",
        success :function (result) {
            var pattern = /^[\d]{7}$/;
            var code = result.code;
            var msg = result.msg;
            var flg = pattern.test(diNumer);
            if (flg){
                if (code==0){
                    alert(msg)

                }else {

                }
            }else {
                alert("长度不符合!!!")

            }


        }
    })
}